{extend name="backend/public/base"}
{block name="layout"}
<div id="loginContent"></div>
<!--<script type="text/javascript">
  (function () {
    let amis = amisRequire('amis/embed');
    let amisScoped = amis.embed('#loginContent', {
      type: 'login-page-phone',
      // logoSrc: '/static/images/logo.svg',  // logo url
      // logoStyle: {},    // logo样式
      title: "欢迎使用品创空间管理系统",
      api: "{:url('login/index')}", // 登录接口
      getCodeApi: "{:url('login/getCode')}", // 获取验证码接口
      redirect: "{:url('index/index')}", //登录成功跳转页
    });
  })();
</script>-->
<script type="text/javascript">
  (function () {
    let amis = amisRequire('amis/embed');
    let amisScoped = amis.embed('#loginContent', {
      type: 'login-page',
      usernameKey: 'account',
      phoneKey: 'mobile',
      passwordKey: 'password',
      codeKey: 'captcha',
      logoSrc: '/static/web/images/logo.svg',  // logo url
      title: "元心理管理系统",
      api: "/b/site/login", // 登录接口
      // getCodeApi: "{:url('/c/tools/captcha')}", // 获取验证码接口
      // redirect: "/b/home/index.html", //登录成功跳转页+++3
      redirect: "/b/om/view.html", //登录成功跳转页+++3
    });
  })();
</script>
{/block}